package com.dhgate.spu.analysis.bean;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.dhgate.spu.analysis.collector.ICollector;

/**
 * @author: wangguodong
 * @create: 2014-3-25 下午6:33:07
 * @description: 产品线实体
 */
public class ProdLine {
	private String prodLineId;
	//key:属性值id，value:属性值英文名称
	private Map<String, String> attrValId2AttrValEnNameMap = new HashMap<String, String>();
	//key:属性值英文名称，value:属性值id列表  （一个属性值名称可能对应多个属性下的属性值id)
	private Map<String, List<String>> attrValEnName2AttrValIdListMap = new HashMap<String, List<String>>();
	//key:属性id，value:属性英文名称
	private Map<String, String> attrId2AttrEnNameMap = new HashMap<String, String>();
	//key:属性值id,所属于的属性id
	private Map<String, String> attrValId2AttrIdMap = new HashMap<String, String>();
	//产品线下所有的属性值(必须是spu规则里的配置了的属性并且有效)
	private String attrValIds = null;
	private String attrIds = null;

	/**ExtractCollector使用变量**/
	//提取
	private String resourcesfiles;

	private Map<String, Object> data_map = new HashMap<String, Object>();
	//key:文件名+标识  value:enNameList   适用于：1188281:Meizu:魅族  和  1188281:Meizu:魅族|M8,M9,MX,MX2,MX3   
	private Map<String, List<String>> filename2enNamelistMap = new HashMap<String, List<String>>();
	private Map<String, Map<String, String>> filename2ennametoattrvalidMap = new HashMap<String, Map<String, String>>();
	
	/**end ExtractCollector使用变量**/
	
	public Map<String, Object> getData_map() {
		return data_map;
	}

	public void setData_map(Map<String, Object> data_map) {
		this.data_map = data_map;
	}

	public String getResourcesfiles() {
		return resourcesfiles;
	}

	public void setResourcesfiles(String resourcesfiles) {
		this.resourcesfiles = resourcesfiles;
	}

	public Map<String, List<String>> getFilename2enNamelistMap() {
		return filename2enNamelistMap;
	}

	public Map<String, Map<String, String>> getFilename2ennametoattrvalidMap() {
		return filename2ennametoattrvalidMap;
	}

	public void setFilename2ennametoattrvalidMap(Map<String, Map<String, String>> filename2ennametoattrvalidMap) {
		this.filename2ennametoattrvalidMap = filename2ennametoattrvalidMap;
	}

	public void setFilename2enNamelistMap(Map<String, List<String>> filename2enNamelistMap) {
		this.filename2enNamelistMap = filename2enNamelistMap;
	}

	public String getAttrIds() {
		return attrIds;
	}

	public void setAttrIds(String attrIds) {
		this.attrIds = attrIds;
	}

	//spu规则list
	private List<SpuStandard> spuStandList = null;
	//本产品线的collector，不配置默认为StandardCollector
	private ICollector collector = null;
	private String collectorName = null;

	public Map<String, List<String>> getAttrValEnName2AttrValIdListMap() {
		return attrValEnName2AttrValIdListMap;
	}

	public void setAttrValEnName2AttrValIdListMap(Map<String, List<String>> attrValEnName2AttrValIdListMap) {
		this.attrValEnName2AttrValIdListMap = attrValEnName2AttrValIdListMap;
	}

	public Map<String, String> getAttrValId2AttrIdMap() {
		return attrValId2AttrIdMap;
	}

	public void setAttrValId2AttrIdMap(Map<String, String> attrValId2AttrIdMap) {
		this.attrValId2AttrIdMap = attrValId2AttrIdMap;
	}

	public String getCollectorName() {
		return collectorName;
	}

	public void setCollectorName(String collectorName) {
		this.collectorName = collectorName;
	}

	public List<SpuStandard> getSpuStandList() {
		return spuStandList;
	}

	public void setSpuStandList(List<SpuStandard> spuStandList) {
		this.spuStandList = spuStandList;
	}

	public ICollector getCollector() {
		return collector;
	}

	public void setCollector(ICollector collector) {
		this.collector = collector;
	}

	public String getProdLineId() {
		return prodLineId;
	}

	public void setProdLineId(String prodLineId) {
		this.prodLineId = prodLineId;
	}

	public String getAttrValIds() {
		return attrValIds;
	}

	public void setAttrValIds(String attrValIds) {
		this.attrValIds = attrValIds;
	}

	public Map<String, String> getAttrValId2AttrValEnNameMap() {
		return attrValId2AttrValEnNameMap;
	}

	public void setAttrValId2AttrValEnNameMap(Map<String, String> attrValId2AttrValEnNameMap) {
		this.attrValId2AttrValEnNameMap = attrValId2AttrValEnNameMap;
	}

	
	public Map<String, String> getAttrId2AttrEnNameMap() {
		return attrId2AttrEnNameMap;
	}

	public void setAttrId2AttrEnNameMap(Map<String, String> attrId2AttrEnNameMap) {
		this.attrId2AttrEnNameMap = attrId2AttrEnNameMap;
	}

}